// cover some element-ui styles

.el-button {
  // 像素风格按钮
  border: 3px solid rgba(0, 0, 0, 0.2) !important;
  border-radius: 0 !important;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2) !important;
  transition: all 0.2s ease !important;
  font-weight: bold !important;
  letter-spacing: 1px;
  font-size: 14px !important;
  
  &:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2) !important;
  }
  
  &:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2) !important;
  }

  // 主要按钮
  &--primary {
    background: #6e8efb !important;
    border-color: #5c7ce9 !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
    
    &:hover {
      background: #7e9bff !important;
      border-color: #6e8efb !important;
    }
  }

  // 成功按钮
  &--success {
    background: #67C23A !important;
    border-color: #5ab62f !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
    
    &:hover {
      background: #75d248 !important;
      border-color: #67C23A !important;
    }
  }

  // 警告按钮
  &--warning {
    background: #E6A23C !important;
    border-color: #d49331 !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
    
    &:hover {
      background: #f0b356 !important;
      border-color: #E6A23C !important;
    }
  }

  // 危险按钮
  &--danger {
    background: #F56C6C !important;
    border-color: #e45c5c !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
    
    &:hover {
      background: #ff8484 !important;
      border-color: #F56C6C !important;
    }
  }

  // 文本按钮特殊处理
  &--text {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 8px !important;
    font-size: 15px !important;

    &:hover {
      transform: none;
      box-shadow: none !important;
      background: rgba(0, 0, 0, 0.05) !important;
    }

    &:active {
      transform: none;
    }
  }

  // 小型按钮字体大小调整
  &--mini {
    font-size: 13px !important;
    padding: 7px 12px !important;
  }

  // 中型按钮字体大小调整
  &--medium {
    font-size: 14px !important;
    padding: 10px 16px !important;
  }

  // 大型按钮字体大小调整
  &--large {
    font-size: 16px !important;
    padding: 12px 20px !important;
  }
}

.el-input__inner,
.el-message-box__title,
.el-dialog__title,
.el-form-item__label,
.el-dropdown-menu__item,
.el-menu-item,
.el-submenu__title,
.el-table th,
.el-table td,
.el-pagination,
.el-tag,
.el-card__header {
  font-family: 'Minecraft', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse
  > div
  > .el-submenu
  > .el-submenu__title
  .el-submenu__icon-arrow {
  display: none;
}

// Override Element UI table default styles
.el-table {
  background-color: transparent !important;
  
  &::before,
  &::after {
    display: none !important;
  }
  
  .el-table__header-wrapper {
    .el-table__header {
      background-color: transparent !important;
      
      tr, th {
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }
    }
  }
  
  .el-table__body-wrapper {
    background-color: transparent !important;
    
    .el-table__body {
      background-color: transparent !important;
      
      tr {
        background-color: transparent !important;
        
        td {
          background-color: rgba(255, 255, 255, 0.05) !important;
          border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        &:hover td {
          background-color: rgba(255, 255, 255, 0.1) !important;
        }
      }
    }
  }
  
  // Fix fixed column background
  .el-table__fixed,
  .el-table__fixed-right {
    background-color: transparent !important;
    
    &::before {
      display: none !important;
    }
    
    .el-table__fixed-body-wrapper {
      background-color: transparent !important;
    }
  }
}

// Modify table text color
.el-table {
  color: #333 !important;
  
  th {
    color: #333 !important;
    font-weight: bold !important;
  }
}

// 加粗标题文字
.el-card__header,
.el-dialog__title,
.el-form-item__label {
  font-weight: bold !important;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
}

// 表格标题加粗
.el-table th {
  font-weight: bold !important;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
}

// 菜单标题加粗
.el-menu-item,
.el-submenu__title {
  font-weight: bold !important;
  letter-spacing: 1px;
}

// 弹窗标题加粗
.el-message-box__title,
.el-dialog__title {
  font-weight: bold !important;
  font-size: 18px !important;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
}